import request from '@/axios/axios.js'

// 分页查询
export const queryPage = (data) => {
    return request({
        url: '/dms/productionSchedule/findPageSchedule',
        method: 'post',
        data: data
    })
}

export const addApi = (data) => {
    return request({
        url: '/dms/productionSchedule/save',
        method: 'post',
        data: data
    })
}
export const deleteApi = (params) => {
    return request({
        url: '/dms/productionSchedule/deleteById',
        method: 'delete',
        params,
    })
}
// 批量导出
export const exportExcel = (data) => {
    return request({
        url: '/dms/productionSchedule/exportTz',
        method: 'post',
        responseType: 'blob',
        data: data
    })
}